package com.xiaoc.bulldozer.common.dto;

import com.xc.framework.common.page.PageDto;
import com.xc.framework.common.page.PageUtil;
import com.xiaoc.bulldozer.common.model.AwardStatistics;

/**
 * describe:
 *
 * @author lihuancheng
 * @date 2018/9/21
 */
public class AwardStatisticsQueryDto extends AwardStatistics {

//    public AwardStatisticsQueryDto() {
//        if (page == null) {
//            this.setPage(null);
//        }
//    }


    private static final long serialVersionUID = 1L;

    private String startTimeStr;

    private String endTimeStr;

    private String subBankCode;

    private Integer tag;

    /**
     * 红包状态
     */
    private Integer awardStatus;


    /**
     *  账户类型
     */
    private Integer balanceType;

    /**
     * 账户明细类型
     */
    private Integer balanceDetailType;

    /**
     * 当前页码
     */
    private Integer page;

    /**
     * 总行数
     */
    private Integer totalCount;

    /**
     * 起始行
     */
    private Integer offset;

    /**
     * 每页行数
     */
    private Integer limit;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
        int[] pager = PageUtil.getPager(page, PageDto.PAGE_SIZE);
        this.setOffset(pager[0]);
        this.setLimit(pager[1]);
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getStartTimeStr() {
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public Integer getAwardStatus() {
        return awardStatus;
    }

    public void setAwardStatus(Integer awardStatus) {
        this.awardStatus = awardStatus;
    }

    public Integer getBalanceType() {
        return balanceType;
    }

    public void setBalanceType(Integer balanceType) {
        this.balanceType = balanceType;
    }

    public Integer getBalanceDetailType() {
        return balanceDetailType;
    }

    public void setBalanceDetailType(Integer balanceDetailType) {
        this.balanceDetailType = balanceDetailType;
    }

    public String getSubBankCode() {
        return subBankCode;
    }

    public void setSubBankCode(String subBankCode) {
        this.subBankCode = subBankCode;
    }

    public Integer getTag() {
        return tag;
    }

    public void setTag(Integer tag) {
        this.tag = tag;
    }
}
